package com.lagou.task.service;

import com.lagou.task.dao.AdminDao;
import com.lagou.task.entity.Admin;
import com.lagou.task.factory.AdminDaoFactory;

public class AdminService {
    private AdminDao adminDao;

    public AdminService() {
        this.adminDao = AdminDaoFactory.getAdminDao();
    }

    /**
     * 提供管理员登陆服务
     * @param admin
     * @return
     */
    public Admin adminLoginService(Admin admin){
        return this.adminDao.adminLogin(admin);
    }
}
